﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml.Linq;

namespace WoodbaseVideoRental
{
    public partial class SiteMap : Woodbase.CodeBase.UI.WoodbaseBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            xmlSiteMap.DocumentContent = "<fullsite>";
            xmlSiteMap.DocumentContent += XDocument.Load(Server.MapPath("/Data/UserMenu.xml")).ToString();
            xmlSiteMap.DocumentContent += XDocument.Load(Server.MapPath("/Data/MovieMenu.xml")).ToString();
            xmlSiteMap.DocumentContent += "</fullsite>";
            xmlSiteMap.TransformSource = Server.MapPath("/Styles/XSLT/SimpleLeftMenu.xslt");
            xmlSiteMap.DataBind();
        }
    }
}